<?php


// урл -> запрос
$rh->useClass("RL_RequestRouter");
$rh->useClass("RL_RequestRouter_Regexp");
$rh->useClass("RL_RequestRouter_Community");
$rh->router = new RL_RequestRouter();

$self = $rh->router;
$pattern = 'RL_RequestRouter_Regexp';

require_once $rh->project_dir.'etc/conf.d/url.php';

require_once $rh->project_dir.'etc/url/search.php';
require_once $rh->project_dir.'etc/url/item.php';
require_once $rh->project_dir.'etc/url/service.php';
require_once $rh->project_dir.'etc/url/comment.php';
require_once $rh->project_dir.'etc/url/issue.php';
require_once $rh->project_dir.'etc/url/tdi.php';
require_once $rh->project_dir.'etc/url/many.php';
require_once $rh->project_dir.'etc/url/user.php';
require_once $rh->project_dir.'etc/url/person.php';
require_once $rh->project_dir.'etc/url/community.php';
require_once $rh->project_dir.'etc/url/vote.php';
require_once $rh->project_dir.'etc/url/quest.php';

$self->addRules($search);
$self->addRules($service);
$self->addRules($person);
$self->addRules($user);
$self->addRules($quest);
$self->addRules($item);
$self->addRules($tdi);
$self->addRules($comment);
$self->addRules($issue);
$self->addRules($many);
$self->addRules($community);
$self->addRules($vote);
